package std.manq.sort;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class bubbleSort {
	public int[] doBubbleSort(int[] piSort){
		int[] sortComplete = piSort;
		
		for (int i = sortComplete.length; i > 0; i--) {
			for (int j = 0; j < sortComplete.length; j++) {
				if(j + 1 > i-1){ break; }
				if(sortComplete[j] > sortComplete[j + 1]){
					int tmp = sortComplete[j];
					sortComplete[j] = sortComplete[j+1];
					sortComplete[j+1] = tmp;
				}
			}
		}

		
		List<Map<String,Object>> list = new ArrayList<Map<String,Object>>();
		return sortComplete;
	}
}